package com.h117121.fashionshop.core.dao;

import java.util.Date;
import java.util.List;

import com.h117121.fashionshop.core.dao.generic.GenericDao;
import com.h117121.fashionshop.core.dom.DateQueryType;
import com.h117121.fashionshop.core.dom.Invoice;
import com.h117121.fashionshop.core.dom.Invoice.PaymentMethod;

public interface InvoiceDao extends GenericDao<Invoice, Long> {
	List<Invoice> findByUsername(String username);
	List<Invoice> findByDateCreated(Date date, DateQueryType type);
	List<Invoice> findByDatePaid(Date date, DateQueryType type);
	List<Invoice> findByPaymentMethod(PaymentMethod method);
	List<Invoice> findByProductName(String name);
}